package com.ukao.cashregister.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * Created by ukaodev on 2017/6/29.
 */

public class addressBean  implements IPickerViewData {


    /**
     * viewOrder : 1
     * children : [{"viewOrder":"1","children":[{"viewOrder":"1","latitude":"0.000000","label":"东城区","value":110101,"parentId":1101,"longitude":"0.000000"}],"latitude":"0.000000","label":"东城","value":1101,"parentId":11,"longitude":"0.000000"},{"viewOrder":"2","children":[{"viewOrder":"1","latitude":"0.000000","label":"西城区","value":110202,"parentId":1102,"longitude":"0.000000"}],"latitude":"0.000000","label":"西城","value":1102,"parentId":11,"longitude":"0.000000"},{"viewOrder":"3","children":[{"viewOrder":"1","latitude":"0.000000","label":"崇文区","value":110303,"parentId":1103,"longitude":"0.000000"}],"latitude":"0.000000","label":"崇文","value":1103,"parentId":11,"longitude":"0.000000"},{"viewOrder":"4","children":[{"viewOrder":"1","latitude":"0.000000","label":"宣武区","value":110404,"parentId":1104,"longitude":"0.000000"}],"latitude":"0.000000","label":"宣武","value":1104,"parentId":11,"longitude":"0.000000"},{"viewOrder":"5","children":[{"viewOrder":"1","latitude":"0.000000","label":"朝阳区","value":110505,"parentId":1105,"longitude":"0.000000"}],"latitude":"0.000000","label":"朝阳","value":1105,"parentId":11,"longitude":"0.000000"},{"viewOrder":"6","children":[{"viewOrder":"1","latitude":"0.000000","label":"丰台区","value":110606,"parentId":1106,"longitude":"0.000000"}],"latitude":"0.000000","label":"丰台","value":1106,"parentId":11,"longitude":"0.000000"},{"viewOrder":"7","children":[{"viewOrder":"1","latitude":"0.000000","label":"石景山区","value":110707,"parentId":1107,"longitude":"0.000000"}],"latitude":"0.000000","label":"石景山","value":1107,"parentId":11,"longitude":"0.000000"},{"viewOrder":"8","children":[{"viewOrder":"1","latitude":"0.000000","label":"海淀区","value":110808,"parentId":1108,"longitude":"0.000000"}],"latitude":"0.000000","label":"海淀","value":1108,"parentId":11,"longitude":"0.000000"},{"viewOrder":"9","children":[{"viewOrder":"1","latitude":"0.000000","label":"门头沟区","value":110909,"parentId":1109,"longitude":"0.000000"}],"latitude":"0.000000","label":"门头沟","value":1109,"parentId":11,"longitude":"0.000000"},{"viewOrder":"10","children":[{"viewOrder":"1","latitude":"0.000000","label":"房山区","value":111111,"parentId":1111,"longitude":"0.000000"}],"latitude":"0.000000","label":"房山","value":1111,"parentId":11,"longitude":"0.000000"},{"viewOrder":"11","children":[{"viewOrder":"1","latitude":"0.000000","label":"通州区","value":111212,"parentId":1112,"longitude":"0.000000"}],"latitude":"0.000000","label":"通州","value":1112,"parentId":11,"longitude":"0.000000"},{"viewOrder":"12","children":[{"viewOrder":"1","latitude":"0.000000","label":"顺义区","value":111313,"parentId":1113,"longitude":"0.000000"}],"latitude":"0.000000","label":"顺义","value":1113,"parentId":11,"longitude":"0.000000"},{"viewOrder":"13","children":[{"viewOrder":"1","latitude":"0.000000","label":"昌平区","value":112114,"parentId":1121,"longitude":"0.000000"}],"latitude":"0.000000","label":"昌平","value":1121,"parentId":11,"longitude":"0.000000"},{"viewOrder":"14","children":[{"viewOrder":"1","latitude":"0.000000","label":"大兴区","value":112415,"parentId":1124,"longitude":"0.000000"}],"latitude":"0.000000","label":"大兴","value":1124,"parentId":11,"longitude":"0.000000"},{"viewOrder":"15","children":[{"viewOrder":"1","latitude":"0.000000","label":"平谷区","value":112617,"parentId":1126,"longitude":"0.000000"}],"latitude":"0.000000","label":"平谷","value":1126,"parentId":11,"longitude":"0.000000"},{"viewOrder":"16","children":[{"viewOrder":"1","latitude":"0.000000","label":"怀柔区","value":112716,"parentId":1127,"longitude":"0.000000"}],"latitude":"0.000000","label":"怀柔","value":1127,"parentId":11,"longitude":"0.000000"},{"viewOrder":"17","children":[{"viewOrder":"1","latitude":"0.000000","label":"密云县","value":112828,"parentId":1128,"longitude":"0.000000"}],"latitude":"0.000000","label":"密云","value":1128,"parentId":11,"longitude":"0.000000"},{"viewOrder":"18","children":[{"viewOrder":"1","latitude":"0.000000","label":"延庆县","value":112929,"parentId":1129,"longitude":"0.000000"}],"latitude":"0.000000","label":"延庆","value":1129,"parentId":11,"longitude":"0.000000"}]
     * latitude : 39.910286
     * label : 北京
     * value : 11
     * parentId : 0
     * longitude : 116.416342
     */

    private String viewOrder;
    private String latitude;
    private String label;
    private int value;
    private int parentId;
    private String longitude;
    private List<ChildrenBeanX> children;

    public String getViewOrder() {
        return viewOrder;
    }

    public void setViewOrder(String viewOrder) {
        this.viewOrder = viewOrder;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public List<ChildrenBeanX> getChildren() {
        return children;
    }

    public void setChildren(List<ChildrenBeanX> children) {
        this.children = children;
    }

    @Override
    public String getPickerViewText() {
        return this.label;
    }

    public static class ChildrenBeanX {
        /**
         * viewOrder : 1
         * children : [{"viewOrder":"1","latitude":"0.000000","label":"东城区","value":110101,"parentId":1101,"longitude":"0.000000"}]
         * latitude : 0.000000
         * label : 东城
         * value : 1101
         * parentId : 11
         * longitude : 0.000000
         */

        private String viewOrder;
        private String latitude;
        private String label;
        private int value;
        private int parentId;
        private String longitude;
        private List<ChildrenBean> children;

        public String getViewOrder() {
            return viewOrder;
        }

        public void setViewOrder(String viewOrder) {
            this.viewOrder = viewOrder;
        }

        public String getLatitude() {
            return latitude;
        }

        public void setLatitude(String latitude) {
            this.latitude = latitude;
        }

        public String getLabel() {
            return label;
        }

        public void setLabel(String label) {
            this.label = label;
        }

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public int getParentId() {
            return parentId;
        }

        public void setParentId(int parentId) {
            this.parentId = parentId;
        }

        public String getLongitude() {
            return longitude;
        }

        public void setLongitude(String longitude) {
            this.longitude = longitude;
        }

        public List<ChildrenBean> getChildren() {
            return children;
        }

        public void setChildren(List<ChildrenBean> children) {
            this.children = children;
        }

        public static class ChildrenBean {
            /**
             * viewOrder : 1
             * latitude : 0.000000
             * label : 东城区
             * value : 110101
             * parentId : 1101
             * longitude : 0.000000
             */

            private String viewOrder;
            private String latitude;
            private String label;
            private int value;
            private int parentId;
            private String longitude;

            public String getViewOrder() {
                return viewOrder;
            }

            public void setViewOrder(String viewOrder) {
                this.viewOrder = viewOrder;
            }

            public String getLatitude() {
                return latitude;
            }

            public void setLatitude(String latitude) {
                this.latitude = latitude;
            }

            public String getLabel() {
                return label;
            }

            public void setLabel(String label) {
                this.label = label;
            }

            public int getValue() {
                return value;
            }

            public void setValue(int value) {
                this.value = value;
            }

            public int getParentId() {
                return parentId;
            }

            public void setParentId(int parentId) {
                this.parentId = parentId;
            }

            public String getLongitude() {
                return longitude;
            }

            public void setLongitude(String longitude) {
                this.longitude = longitude;
            }
        }
    }
}
